// import './css/reset.css';
import './css/index.css';
import Editor from './js/editor';
import withLogger from './js/plugins/logger';
import withUpperCase from './js/plugins/to_upper_case';
import WithUndoRedo from './js/plugins/undo_redo';

window.onload = () => {
  const editor = WithUndoRedo(new Editor(document.getElementById('editor-pre') as HTMLElement));
  editor.init();
}